package com.ruoyi.community.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品栏对象 sys_commodity
 * 
 * @author zzx
 * @date 2022-06-07
 */
public class SysCommodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long commodityId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String commodityName;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String commodityInfo;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal commodityPrice;

    /** 类别 */
    @Excel(name = "类别")
    private Long commodityType;

    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setCommodityName(String commodityName) 
    {
        this.commodityName = commodityName;
    }

    public String getCommodityName() 
    {
        return commodityName;
    }
    public void setCommodityInfo(String commodityInfo) 
    {
        this.commodityInfo = commodityInfo;
    }

    public String getCommodityInfo() 
    {
        return commodityInfo;
    }
    public void setCommodityPrice(BigDecimal commodityPrice) 
    {
        this.commodityPrice = commodityPrice;
    }

    public BigDecimal getCommodityPrice() 
    {
        return commodityPrice;
    }
    public void setCommodityType(Long commodityType) 
    {
        this.commodityType = commodityType;
    }

    public Long getCommodityType() 
    {
        return commodityType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commodityId", getCommodityId())
            .append("commodityName", getCommodityName())
            .append("commodityInfo", getCommodityInfo())
            .append("commodityPrice", getCommodityPrice())
            .append("commodityType", getCommodityType())
            .toString();
    }
}
